package club.caihappy.server.mapper;

import club.caihappy.server.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author seven
 * @since 2022-05-07
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 获取所有部门
     *
     * @return
     */
    List<Department> getAllDepartment(Integer id);

    /**
     * 添加部门
     * @param department
     * @return
     */
    void addDep(Department department);

    void deleteDep(Department department);
}
